FROM  centos:7

ADD lib/libgolaxynpce.so  /usr/lib/libgolaxynpce.so
ADD src/main.py /root
ADD src/WeiboWenZhang.py /root
ADD logger.conf /root/logger.conf 
RUN yum install -y epel-release && yum install -y openssl-devel zlib-devel zlib-devel c-ares-devel curl-devel python2 python-pip 
RUN pip install requests==2.15.1 && mkdir -p /root/log

EXPOSE 7645

WORKDIR /root

CMD ["python", "-W", "ignore", "main.py", "7645"]

